import { $axios } from '@/utils/axios.js';

// 4. GRAPES高分辨率确定性预报模式检验模块 - 设置

// 4.5 设置页面加载
export function settingLoadInfo() {
    return $axios.post('/grapes_region_determ/setting_load_info');
}

// 4.6 服务器修改设置
export function updateServer(data) {
    return $axios.post('/grapes_region_determ/setting/update_server', data);
}

// 4.7 服务器缓存数据修改设置
export function changeServerLoad(data) {
    return $axios.post('/grapes_region_determ/setting/change_server_load', data);
}

// 4.8 显著性检验阈值修改请求
export function updateThresholds(data) {
    return $axios.post('/grapes_region_determ/setting/update_thresholds', data);
}

// 4.9 显著性检验置信度修改请求
export function updateConfidence(data) {
    return $axios.post('/grapes_region_determ/setting/update_confidence', data);
}

// 4.10 缓存数据查看请求
export function loadBuffer() {
    return $axios.post('/grapes_region_determ/setting/load_buffer');
}

// 4.11 缓存数据清空请求
export function clearBuffer() {
    return $axios.post('/grapes_region_determ/setting/clear_buffer');
}

// 4.12 项目人员数据请求
export function loadMembers() {
    return $axios.post('/grapes_region_determ/setting/load_members');
}

// 4.14 项目人员搜索请求
export function searchMember(data) {
    return $axios.post('/grapes_region_determ/setting/search_member', data);
}

// 4.14 项目人员删除请求
export function delMember(data) {
    return $axios.post('/grapes_region_determ/setting/del_member', data);
}

// 4.15 项目添加新成员请求
export function addMember(data) {
    return $axios.post('/grapes_region_determ/setting/add_member', data);
}

// 4.16 项目运行日志查看请求
export function loadLog(data) {
    return $axios.post('/grapes_region_determ/setting/load_log', data);
}

// 3.17 导出所有方法
export default {
    settingLoadInfo,
    updateServer,
    changeServerLoad,
    updateThresholds,
    updateConfidence,
    loadBuffer,
    clearBuffer,
    loadMembers,
    searchMember,
    delMember,
    addMember,
    loadLog
}